package miiteen.twoexploit.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import miiteen.common.json.jackson.LongSerialize;
import miiteen.common.utils.FieldMeta;
import miiteen.sys.base.bean.BasePo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * Name: lzhg_two_regulations
 * Des: -Bean
 * Author: qyp
 * Date: 2021-10-20
 * 兰州海关规章制度
 */


public class Regulations extends BasePo {


    @FieldMeta(name = "")
    private long id;


    @FieldMeta(name = "标题")
    private String title;


    @FieldMeta(name = "内容")
    private String textContent;


    @FieldMeta(name = "部门id")
    private long deptId;


    @FieldMeta(name = "部门name")
    private String deptName;


    @FieldMeta(name = "附件路径")
    private String accessoryPath;


    @FieldMeta(name = "是否显示  1：显示   2：隐藏")
    private int isDisplay;


    @FieldMeta(name = "删除状态")
    private int delState;


    @FieldMeta(name = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date createDate;

    @FieldMeta(name = "创建人id")
    private long createId;


    @FieldMeta(name = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;


    @FieldMeta(name = "修改人id")
    private long updateId;


    @FieldMeta(name = "关号")
    private String guanhao;

    @FieldMeta(name = "预留字段1")
    private String ylzd1;

    @FieldMeta(name = "预留字段2")
    private String ylzd2;


    @FieldMeta(name = "弹窗用户角色")
    private String usertype;

    public String getUsertype() {
        return usertype;
    }

    public void setUsertype(String usertype) {
        this.usertype = usertype;
    }


    @FieldMeta(name = "附件")
    private List<Filedownload> filelist=new ArrayList<>();

    public String getGuanhao() {
        return guanhao;
    }

    public void setGuanhao(String guanhao) {
        this.guanhao = guanhao;
    }

    public List<Filedownload> getFilelist() {
        return filelist;
    }

    public void setFilelist(List<Filedownload> filelist) {
        this.filelist = filelist;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTextContent() {
        return textContent;
    }

    public void setTextContent(String textContent) {
        this.textContent = textContent;
    }
    @JsonSerialize(using = LongSerialize.class)
    public long getDeptId() {
        return deptId;
    }

    public void setDeptId(long deptId) {
        this.deptId = deptId;
    }

    public String getAccessoryPath() {
        return accessoryPath;
    }

    public void setAccessoryPath(String accessoryPath) {
        this.accessoryPath = accessoryPath;
    }

    public int getIsDisplay() {
        return isDisplay;
    }

    public void setIsDisplay(int isDisplay) {
        this.isDisplay = isDisplay;
    }

    public int getDelState() {
        return delState;
    }

    public void setDelState(int delState) {
        this.delState = delState;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getCreateId() {
        return createId;
    }

    public void setCreateId(long createId) {
        this.createId = createId;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
    @JsonSerialize(using = LongSerialize.class)
    public long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(long updateId) {
        this.updateId = updateId;
    }

    public String getYlzd1() {
        return ylzd1;
    }

    public void setYlzd1(String ylzd1) {
        this.ylzd1 = ylzd1;
    }

    public String getYlzd2() {
        return ylzd2;
    }

    public void setYlzd2(String ylzd2) {
        this.ylzd2 = ylzd2;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }


}
